package com.dhcy.mqtt.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel(value = "设备实体类", reference = "设备实体类")
public class Equipment {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "设备id", dataType = "Integer ", example = "")
    private Integer id;
    @ApiModelProperty(value = "设备编号", dataType = "String ", example = "")
    private String number;
    @ApiModelProperty("鉴权信息")
    private String authInfo;
    @ApiModelProperty(value = "标识")
    private String handle;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", dataType = "Date ", example = "")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间", dataType = "Date ", example = "")
    private Date updateTime;

    private Boolean isDel;
}
